<template>
  <div>
    <Tab v-for="tab in tabData" :Key="tab.id" v-bind="tab"/>
  </div>
</template>

<script>
import { v4 as uuidv4 } from "uuid";
import Tab from "./components/tab.vue"
export default {
  name : "App",
  components : {
    Tab
  },
  data(){
    return {
      tabData :[
          { id: uuidv4(), title: "美食", list: ["火锅", "烧烤", "小龙虾"] },
        { id: uuidv4(), title: "游戏", list: ["LoL", "DNF", "CS", "Dota"] },
        {
          id: uuidv4(),
          title: "电影",
          list: ["独行月球", "智取威虎山", "绿皮书"],
        },
      ]
    }
  }
}
</script>

<style>

</style>